package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 计量单位对象 uom
 * 
 * @author ruoyi
 * @date 2025-10-16
 */
public class Uom extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 计量单位编码 */
    private String uomId;

    /** 计量单位名称 */
    @Excel(name = "计量单位名称")
    private String uomName;

    /** 是否停用 */
    @Excel(name = "是否停用")
    private Boolean status;

    /** 停用状态 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "停用状态", width = 30, dateFormat = "yyyy-MM-dd")
    private Date statusDate;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdPerson;

    public void setUomId(String uomId) 
    {
        this.uomId = uomId;
    }

    public String getUomId() 
    {
        return uomId;
    }

    public void setUomName(String uomName) 
    {
        this.uomName = uomName;
    }

    public String getUomName() 
    {
        return uomName;
    }

    public void setStatus(Boolean status) 
    {
        this.status = status;
    }

    public Boolean getStatus() 
    {
        return status;
    }

    public void setStatusDate(Date statusDate) 
    {
        this.statusDate = statusDate;
    }

    public Date getStatusDate() 
    {
        return statusDate;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setCreatedPerson(String createdPerson) 
    {
        this.createdPerson = createdPerson;
    }

    public String getCreatedPerson() 
    {
        return createdPerson;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("uomId", getUomId())
            .append("uomName", getUomName())
            .append("status", getStatus())
            .append("statusDate", getStatusDate())
            .append("createdAt", getCreatedAt())
            .append("createdPerson", getCreatedPerson())
            .toString();
    }
}
